//
//  CZProductCell.m
//  A01-CZ彩票
//
//  Created by apple on 15-6-16.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "CZProductCell.h"
#import "CZProduct.h"
@interface CZProductCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleView;

@end

@implementation CZProductCell

- (void)awakeFromNib{
    //圆角
    self.iconView.layer.cornerRadius = 10;
    self.iconView.layer.masksToBounds = YES;
}

- (void)setProduct:(CZProduct *)product{
    _product = product;
    
    self.titleView.text = product.title;
    self.iconView.image = [UIImage imageNamed:product.icon];
}
@end
